package com.company.behavioral.state_pattern.state;

import com.company.behavioral.state_pattern.context.Account;

/**
 * 账户状态
 * @ClassName AccountState
 * @Author tiezheng.han
 * @Date 2020/9/7 14:03
 **/
public abstract class AccountState {

    public Account acc;
    public abstract void deposit(double amount);
    public abstract void withdraw(double amount);
    public abstract void computeInterest();
    public abstract void stateCheck();
}
